package com.xingshang.config;

import com.xingshang.service.AdminService;
import com.xingshang.service.Proxy.AdminServiceProxy;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Primary;
@Configuration

public class AdminServiceConfig {
    @Bean
    @Primary
    public AdminService adminService(AdminServiceProxy proxy) {
        return proxy;
    }
}
